<template>
  <div>
    <Dome id="id" ref="get" />
  </div>
</template>
<script>
import Dome from '@/components/Dome'
export default {
  components: {
    Dome
  },
  mounted () {
    console.log(document.querySelector('.hw'))//  <div class="hw">新创建</div>
    console.log(this.$refs.get)//获取组件对象
  }
}
</script>